package com.zut.controller;


import com.zut.pojo.Parents;
import com.zut.pojo.Schdule;
import com.zut.service.SchduleService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author schdule
 * @since 2021-06-06
 */
@Controller
@RequestMapping("/schdule")
public class SchduleController {
    @Resource
    SchduleService schduleService;
    @RequestMapping("/getSchdule")
    public void getSch(Model model, @RequestParam("teaid") int teaid){
       List<Schdule> schduleList=schduleService.sleSch(teaid);
       model.addAttribute("schlist",schduleList);
       return;
    }

}

